<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
    <style>
      body {
        font-size: 18px;
      }

      .nav ul,
      .nav li {
        margin: 0;
        padding: 0;
        font-size: 0;
      }
      .nav ul {
        display: flex;
      }

      .nav li::before {
        content: "/";
      }

      .nav li:first-child::before {
        content: "";
      }

      .nav li {
        display: inline-block;
        font-size: 18px;
        color: black;
        text-align: center;
        margin: 0;
      }

      .nav a {
        /* 去掉超链的下划线*/
        text-decoration: none;
        color: black;
      }

      .header {
        background-color: blanchedalmond;
        margin-bottom: 5px;
        padding: 10px;
      }

      .nav {
        background-color: blanchedalmond;
        margin-bottom: 5px;
        /* height:  50px; */
      }

      .main {
        height: 800px;
        background-color: blanchedalmond;
        margin-bottom: 5px;
      }

      .footer {
        text-align: center;
        background-color: blanchedalmond;
        padding: 10px;
      }
    </style>
  </head>
  <body>
    <div class="container">
      <div class="header"><h1>面包屑练习</h1></div>
      <div class="nav">
        <ul>
          <li><a href="">Home</a></li>
          <li><a href="">Category</a></li>
          <li><a href="">Sub-Category</a></li>
          <li><span>Product</span></li>
        </ul>
      </div>
      <div class="main">主体</div>
      <div class="footer">&copy;2021 王绍陇</div>
    </div>
  </body>
</html>
